package com.ehualu.core.util.sms.pojo;

public enum SmsResponseStatus {

	SUCCESS("0000","SUCCESS","success"),  //成功
	FAIL("9999","FAIL","failed"),//失败
	RESULT_IS_NULL("0001","RESULT_IS_NULL","failed"), //结果集为空
	SYSTEM_IS_EXCEPTION("0002","SYSTEM_IS_EXCEPTION","failed"),  //系统异常
	PARAM_IS_MISS("0003","PARAM_IS_MISS","failed"),  //参数缺失
	RESULT_IS_ERROR("0004","RESULT_IS_ERROR","failed"),//返回结果结构错误
	CLOSE_HTTPCLIENT_FAIL("0005","CLOSE_HTTPCLIENT_FAIL","failed"),//关闭客户端失败
	REQUEST_ERROR("0006","Client requests to the server, and does not comply with the HTTP protocol","failed"),//
	DATA_PARSE_EXCEPTION("0007","DATA_PARSE_EXCEPTION","failed");//解析异常
	
	// 成员变量
		private String code;
		private String reason;
		private String status;
		
		// 构造方法
		private SmsResponseStatus(String code, String reason,String status) {
			this.code = code;
			this.reason = reason;
			this.status = status;
		}

		public String getCode() {
			return code;
		}

		public void setCode(String code) {
			this.code = code;
		}

		public String getReason() {
			return reason;
		}

		public void setReason(String reason) {
			this.reason = reason;
		}
		
		public String getStatus() {
			return status;
		}

		public void setStatus(String status) {
			this.status = status;
		}

		public static void main(String[] args){
			System.out.println(SmsResponseStatus.SUCCESS.getCode());
			System.out.println(SmsResponseStatus.SUCCESS.getReason());
			System.out.println(SmsResponseStatus.SUCCESS.getStatus());
		}
}
